<?php


namespace App\Http\Controllers\admin\api;


use App\Http\Controllers\admin\service\ControlService;
use App\Http\Controllers\admin\validate\Control;
use App\Http\Controllers\utils\ToolUtil;
use Illuminate\Http\Request;

class ControlApi
{


    public function queryBatchName(Request $request){
        $param = $request->all();
        $data = Control::queryBatchName($param);
        if($data){
            return ToolUtil::returnJson(401,$data[0]);
        }
        return ControlService::queryBatchName($param);
    }

    public function querySnName(Request $request){
        $param = $request->all();
        $data = Control::queryBatchName($param);
        if($data){
            return ToolUtil::returnJson(401,$data[0]);
        }
        return ControlService::querySnName($param);
    }

    public function addTeacherBrowser(Request $request){
        $param = $request->all();
        $data = Control::addTeacherBrowser($param);
        if($data){
            return ToolUtil::returnJson(401,$data[0]);
        }
        return ControlService::addTeacherBrowser($param);
    }

    public function queryTeacherBrowser(Request $request){
        $param = $request->all();
        $data = Control::queryTeacherBrowser($param);
        if($data){
            return ToolUtil::returnJson(401,$data[0]);
        }
        return ControlService::queryTeacherBrowser($param);
    }

    public function queryIdTeacherBrowser(Request $request){
        $param = $request->all();
        $data = Control::queryIdTeacherBrowser($param);
        if($data){
            return ToolUtil::returnJson(401,$data[0]);
        }
        return ControlService::queryIdTeacherBrowser($param);
    }

    public function editTeacherBrowser(Request $request){
        $param = $request->all();
        $data = Control::editTeacherBrowser($param);
        if($data){
            return ToolUtil::returnJson(401,$data[0]);
        }
        return ControlService::editTeacherBrowser($param);
    }

    public function deleteTeacherBrowser(Request $request){
        $param = $request->all();
        $data = Control::deleteTeacherBrowser($param);
        if($data){
            return ToolUtil::returnJson(401,$data[0]);
        }
        return ControlService::deleteTeacherBrowser($param);
    }

    public function queryParentBrowser(Request $request){
        $param = $request->all();
        $data = Control::queryParentBrowser($param);
        if($data){
            return ToolUtil::returnJson(401,$data[0]);
        }
        return ControlService::queryParentBrowser($param);
    }

    public function addParentBrowser(Request $request){
        $param = $request->all();
        $data = Control::addParentBrowser($param);
        if($data){
            return ToolUtil::returnJson(401,$data[0]);
        }
        return ControlService::addParentBrowser($param);
    }

    public function queryIdParentBrowser(Request $request){
        $param = $request->all();
        $data = Control::queryIdParentBrowser($param);
        if($data){
            return ToolUtil::returnJson(401,$data[0]);
        }
        return ControlService::queryIdParentBrowser($param);
    }

    public function editParentBrowser(Request $request){
        $param = $request->all();
        $data = Control::editParentBrowser($param);
        if($data){
            return ToolUtil::returnJson(401,$data[0]);
        }
        return ControlService::editParentBrowser($param);
    }

    public function deleteParentBrowser(Request $request){
        $param = $request->all();
        $data = Control::deleteParentBrowser($param);
        if($data){
            return ToolUtil::returnJson(401,$data[0]);
        }
        return ControlService::deleteParentBrowser($param);
    }

    public function addTeacherAppGround(Request $request){
        $param = $request->all();
        $data = Control::addTeacherAppGround($param);
        if($data){
            return ToolUtil::returnJson(401,$data[0]);
        }
        return ControlService::addTeacherAppGround($param);
    }

    public function queryTeacherAppGround(Request $request){
        $param = $request->all();
        $data = Control::queryTeacherAppGround($param);
        if($data){
            return ToolUtil::returnJson(401,$data[0]);
        }
        return ControlService::queryTeacherAppGround($param);
    }

    public function queryIdTeacherAppGround(Request $request){
        $param = $request->all();
        $data = Control::queryIdTeacherAppGround($param);
        if($data){
            return ToolUtil::returnJson(401,$data[0]);
        }
        return ControlService::queryIdTeacherAppGround($param);
    }

    public function editTeacherAppGround(Request $request){
        $param = $request->all();
        $data = Control::editTeacherAppGround($param);
        if($data){
            return ToolUtil::returnJson(401,$data[0]);
        }
        return ControlService::editTeacherAppGround($param);
    }

    public function deleteTeacherAppGround(Request $request){
        $param = $request->all();
        $data = Control::deleteTeacherAppGround($param);
        if($data){
            return ToolUtil::returnJson(401,$data[0]);
        }
        return ControlService::deleteTeacherAppGround($param);
    }

    public function addParentAppGround(Request $request){
        $param = $request->all();
        $data = Control::addParentAppGround($param);
        if($data){
            return ToolUtil::returnJson(401,$data[0]);
        }
        return ControlService::addParentAppGround($param);
    }

    public function queryParentAppGround(Request $request){
        $param = $request->all();
        $data = Control::queryParentAppGround($param);
        if($data){
            return ToolUtil::returnJson(401,$data[0]);
        }
        return ControlService::queryParentAppGround($param);
    }

    public function queryIdParentAppGround(Request $request){
        $param = $request->all();
        $data = Control::queryIdParentAppGround($param);
        if($data){
            return ToolUtil::returnJson(401,$data[0]);
        }
        return ControlService::queryIdParentAppGround($param);
    }

    public function editParentAppGround(Request $request){
        $param = $request->all();
        $data = Control::editParentAppGround($param);
        if($data){
            return ToolUtil::returnJson(401,$data[0]);
        }
        return ControlService::editParentAppGround($param);
    }

    public function deleteParentAppGround(Request $request){
        $param = $request->all();
        $data = Control::deleteParentAppGround($param);
        if($data){
            return ToolUtil::returnJson(401,$data[0]);
        }
        return ControlService::deleteParentAppGround($param);
    }

    public function queryTeacherAppStart(Request $request){
        $param = $request->all();
        $data = Control::queryTeacherAppStart($param);
        if($data){
            return ToolUtil::returnJson(401,$data[0]);
        }
        return ControlService::queryTeacherAppStart($param);
    }

    public function editTeacherAppStart(Request $request){
        $param = $request->all();
        $data = Control::editTeacherAppStart($param);
        if($data){
            return ToolUtil::returnJson(401,$data[0]);
        }
        return ControlService::editTeacherAppStart($param);
    }

    public function queryParentAppStart(Request $request){
        $param = $request->all();
        $data = Control::queryParentAppStart($param);
        if($data){
            return ToolUtil::returnJson(401,$data[0]);
        }
        return ControlService::queryParentAppStart($param);
    }

    public function editParentAppStart(Request $request){
        $param = $request->all();
        $data = Control::editParentAppStart($param);
        if($data){
            return ToolUtil::returnJson(401,$data[0]);
        }
        return ControlService::editParentAppStart($param);
    }

    public function queryTeacherAppInside(Request $request){
        $param = $request->all();
        $data = Control::queryTeacherAppInside($param);
        if($data){
            return ToolUtil::returnJson(401,$data[0]);
        }
        return ControlService::queryTeacherAppInside($param);
    }

    public function queryIdTeacherAppInside(Request $request){
        $param = $request->all();
        $data = Control::queryIdTeacherAppInside($param);
        if($data){
            return ToolUtil::returnJson(401,$data[0]);
        }
        return ControlService::queryIdTeacherAppInside($param);
    }

    public function editTeacherAppInside(Request $request){
        $param = $request->all();
        $data = Control::editTeacherAppInside($param);
        if($data){
            return ToolUtil::returnJson(401,$data[0]);
        }
        return ControlService::editTeacherAppInside($param);
    }

    public function queryParentAppInside(Request $request){
        $param = $request->all();
        $data = Control::queryParentAppInside($param);
        if($data){
            return ToolUtil::returnJson(401,$data[0]);
        }
        return ControlService::queryParentAppInside($param);
    }

    public function queryIdParentAppInside(Request $request){
        $param = $request->all();
        $data = Control::queryIdParentAppInside($param);
        if($data){
            return ToolUtil::returnJson(401,$data[0]);
        }
        return ControlService::queryIdParentAppInside($param);
    }

    public function editParentAppInside(Request $request){
        $param = $request->all();
        $data = Control::editParentAppInside($param);
        if($data){
            return ToolUtil::returnJson(401,$data[0]);
        }
        return ControlService::editParentAppInside($param);
    }

    public function importTfMedia(Request $request){
        $param = $request->all();
        $data = Control::importTfMedia($param);
        if($data){
            return ToolUtil::returnJson(401,$data[0]);
        }
        return ControlService::importTfMedia($param);
    }

    public function addTfMedia(Request $request){
        $param = $request->all();
        $data = Control::addTfMedia($param);
        if($data){
            return ToolUtil::returnJson(401,$data[0]);
        }
        return ControlService::addTfMedia($param);
    }

    public function queryTfMedia(Request $request){
        $param = $request->all();
        $data = Control::queryTfMedia($param);
        if($data){
            return ToolUtil::returnJson(401,$data[0]);
        }
        return ControlService::queryTfMedia($param);
    }

    public function queryIdTfMedia(Request $request){
        $param = $request->all();
        $data = Control::queryIdTfMedia($param);
        if($data){
            return ToolUtil::returnJson(401,$data[0]);
        }
        return ControlService::queryIdTfMedia($param);
    }

    public function editTfMedia(Request $request){
        $param = $request->all();
        $data = Control::editTfMedia($param);
        if($data){
            return ToolUtil::returnJson(401,$data[0]);
        }
        return ControlService::editTfMedia($param);
    }

    public function deleteTfMedia(Request $request){
        $param = $request->all();
        $data = Control::deleteTfMedia($param);
        if($data){
            return ToolUtil::returnJson(401,$data[0]);
        }
        return ControlService::deleteTfMedia($param);
    }

    public function queryPakName(Request $request){
        $param = $request->all();
        $data = Control::queryPakName($param);
        if($data){
            return ToolUtil::returnJson(401,$data[0]);
        }
        return ControlService::queryPakName($param);
    }

    public function queryTypeTfMedia(Request $request){
        $param = $request->all();
        $data = Control::queryTypeTfMedia($param);
        if($data){
            return ToolUtil::returnJson(401,$data[0]);
        }
        return ControlService::queryTypeTfMedia($param);
    }

    public function addTeacherSetting(Request $request){
        $param = $request->all();
        $data = Control::addTeacherSetting($param);
        if($data){
            return ToolUtil::returnJson(401,$data[0]);
        }
        return ControlService::addTeacherSetting($param);
    }

    public function queryTeacherSetting(Request $request){
        $param = $request->all();
        $data = Control::queryTeacherSetting($param);
        if($data){
            return ToolUtil::returnJson(401,$data[0]);
        }
        return ControlService::queryTeacherSetting($param);
    }

    public function queryIdTeacherSetting(Request $request){
        $param = $request->all();
        $data = Control::queryIdTeacherSetting($param);
        if($data){
            return ToolUtil::returnJson(401,$data[0]);
        }
        return ControlService::queryIdTeacherSetting($param);
    }

    public function editTeacherSetting(Request $request){
        $param = $request->all();
        $data = Control::editTeacherSetting($param);
        if($data){
            return ToolUtil::returnJson(401,$data[0]);
        }
        return ControlService::editTeacherSetting($param);
    }

    public function deleteTeacherSetting(Request $request){
        $param = $request->all();
        $data = Control::deleteTeacherSetting($param);
        if($data){
            return ToolUtil::returnJson(401,$data[0]);
        }
        return ControlService::deleteTeacherSetting($param);
    }

    public function addParentSetting(Request $request){
        $param = $request->all();
        $data = Control::addParentSetting($param);
        if($data){
            return ToolUtil::returnJson(401,$data[0]);
        }
        return ControlService::addParentSetting($param);
    }

    public function queryParentSetting(Request $request){
        $param = $request->all();
        $data = Control::queryParentSetting($param);
        if($data){
            return ToolUtil::returnJson(401,$data[0]);
        }
        return ControlService::queryParentSetting($param);
    }

    public function queryIdParentSetting(Request $request){
        $param = $request->all();
        $data = Control::queryIdParentSetting($param);
        if($data){
            return ToolUtil::returnJson(401,$data[0]);
        }
        return ControlService::queryIdParentSetting($param);
    }

    public function editParentSetting(Request $request){
        $param = $request->all();
        $data = Control::editParentSetting($param);
        if($data){
            return ToolUtil::returnJson(401,$data[0]);
        }
        return ControlService::editParentSetting($param);
    }

    public function deleteParentSetting(Request $request){
        $param = $request->all();
        $data = Control::deleteParentSetting($param);
        if($data){
            return ToolUtil::returnJson(401,$data[0]);
        }
        return ControlService::deleteParentSetting($param);
    }
}